using System.IO;

using AzureContrib.WindowsAzure.ServiceRuntime;

namespace AzureContrib.WindowsAzure.MockServiceRuntime
{
	internal class MockLocalResourceWrapper : ILocalResource
	{
		private int maximumSizeInMegabytes;

		private string name;

		private DirectoryInfo directoryInfo;

		public MockLocalResourceWrapper(int maximumSizeInMegabytes, string name, string rootPath)
		{
			this.maximumSizeInMegabytes = maximumSizeInMegabytes;
			this.name = name;
			directoryInfo = new DirectoryInfo(rootPath);
		}

		public int MaximumSizeInMegabytes
		{
			get { return maximumSizeInMegabytes; }
		}

		public string Name
		{
			get { return name; }
		}

		public DirectoryInfo RootPath
		{
			get
			{
				return directoryInfo;
			}
		}
	}
}